package org.dashboard.service;

import org.dashboard.bean.AdPage;
import org.dashboard.bean.AdUserPage;

import java.util.List;
import java.util.Map;

public interface AdUserPageService {
    int deleteByPrimaryKey(Integer userPageId);

    int insert(AdUserPage record);

    int insertSelective(AdUserPage record);

    AdUserPage selectByPrimaryKey(Integer userPageId);

    int updateByPrimaryKeySelective(AdUserPage record);

    int updateByPrimaryKeyWithBLOBs(AdUserPage record);

    int updateByPrimaryKey(AdUserPage record);


    AdPage loadUserPage(Integer pageId,Integer userId);

    List<Map<String, Object>> loadUserRolePages(Integer userId, Integer resourceType);

    AdUserPage addOrUpdateUserPage(Integer userId, Integer pageId, String pageData);

    AdPage restoreDefaultUserPage(Integer userId, Integer pageId);
}
